x86: disable emulate.c REP optimization if introspection is active
authorRazvan Cojocaru <rcojocaru@bitdefender.com>
Tue, 4 Nov 2014 12:13:55 +0000 (13:13 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 4 Nov 2014 12:13:55 +0000 (13:13 +0100)
commit413e9215ace59eb9d0dcbd00376e1029ec23c6ab
tree86287e7a1be730b84f4fe625a1b3561ce2623719
parentc38cf865ec82f27c62a60f0edfc717a5dc5fc6b4
x86: disable emulate.c REP optimization if introspection is active

Emulation for REP instructions is optimized to perform a single
write for all repeats in the current page if possible. However,
this interferes with a memory introspection application's ability
to detect suspect behaviour, since it will cause only one
mem_event to be sent per page touched.
This patch disables the optimization, gated on introspection
being active for the domain.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
xen/arch/x86/hvm/emulate.c